package com.sghj.SysPermission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sghj.SysPermission.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xrx
 * @since 2022-02-18
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getRoleListByUid(Integer uid);

    void removeRoleBuild(Integer rid);

    void addRoleBuildBatch(Integer rid, String[] builds);

    String[] getBuildScopeByUser(Integer rid);

    IPage<SysRole> selectRoleList(IPage<SysRole> page,@Param("SysRole") SysRole roleVo);

    void updateRole(SysRole role);

    void deleteRoleDeptByRoleId(Integer sysRoleId);
}
